package com.asiainfo.dacp.common.utils;

import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.util.Properties;

public class ProUtils implements Serializable {

    private Properties properties;

    public  Properties getProperties(String fileName){
        if (properties!=null){
            return properties;
        }
        properties=new Properties();
        InputStream in = ProUtils.class.getClassLoader().getResourceAsStream(fileName);

        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();

        }
        return properties;
    }
}
